package org.lanqiao.dao;

import org.lanqiao.entity.RechargeRecord;
import org.lanqiao.mapper.RechargeRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class RechargeRecordDao {

    @Autowired
    private RechargeRecordMapper rechargeRecordMapper;
    /**
     * @Author 刘力铭
     * @Description
     * @Date 2019/5/23 20:01
     * @Param 查询所有充值数据
     * @Return
     **/
    public List<RechargeRecord> queryRechargeList(){
        return rechargeRecordMapper.queryRechargeList();
    }
    /**
     * @Author 刘力铭
     * @Description
     * @Date 2019/5/23 20:01
     * @Param 查询用户充值记录
     * @Return
     **/

   public  List<RechargeRecord> selectByName(String wxName){
        return rechargeRecordMapper.selectByname(wxName);
   }
}
